package me.helllp.dake.iam.core.convert;

import me.helllp.dake.iam.core.bo.ApplicationBo;
import me.helllp.dake.iam.core.bo.DictionaryBo;
import me.helllp.dake.iam.core.po.DakeApplication;
import me.helllp.dake.iam.core.po.DakeDictionary;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 字典的结构转换器
 */
@Mapper(componentModel = "spring")
public interface DictionaryConvert {
    DictionaryConvert INSTANCE = Mappers.getMapper(DictionaryConvert.class);

    DictionaryBo toDictionaryBo(DakeDictionary dictionary);

    DakeDictionary toDictionary(DictionaryBo bo);
}
